import  numpy as np
import csv
#数据处理
def data_process():
    iris_data = []
    with open("iris.csv") as csvfile:
         # 使用csv.reader读取csvfile中文件
        csv_reader = csv.reader(csvfile)  
         # 读取第一行每一列的标题
        birth_header = next(csv_reader)  
        # 将csv 文件中的数据保存到birth_data中
        for row in csv_reader:  
            iris_data.append(row)
    iris_list = []

    for row in iris_data:
        iris_list.append(tuple(row[1:]))

    datatype = np.dtype([("Sepal.Length", np.float64), ("Sepal.Width", np.float64), 
                         ("Petal.Length",np.float64), ("Petal.Width", np.float64),("Species",np.str_,40)])
    iris_data = np.array(iris_list,dtype = datatype)
    return iris_data
#统计计算
def calculate(data):
    stats={}
    for species in['setosa','versicolor','virginica']:
        mask = (data['Species'] == species)
        subset = data[mask]
        stats[species] = {'means': [
                np.mean(subset['Sepal.Length']),
                np.mean(subset['Sepal.Width']),
                np.mean(subset['Petal.Length']),
                np.mean(subset['Petal.Width'])
            ],
            'stds': [
                np.std(subset['Sepal.Length']),
                np.std(subset['Sepal.Width']),
                np.std(subset['Petal.Length']),
                np.std(subset['Petal.Width'])
            ]}
    return stats
#分类操作
def classify_flower(input_data,stats):
    min_diff = float('inf')
    result = ''
    for species in ['setosa','versicolor','virginica']:
        s = stats[species]
        diff = 0
        for i in range(4):
            diff += abs(input_data[i]-s['means'][i])/s['stds'][i]
        if diff < min_diff:
            min_diff = diff
            result = species
    return result
#前端
if __name__ == "__main__":
    iris_array = data_process()
    stats = calculate(iris_array)

    raw_data = input().strip()
    input_data = list(map(float,raw_data.split()))

    result = classify_flower(input_data,stats)
    print(result)